﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Eventhere.Work
{
    public class Event
    {
        //CHAMP
        private int idEvent;

        public int IdEvent
        {
            get { return idEvent; }
            set { idEvent = value; }
        }
        private String nameEvent;
        private String contentEvent;

        public String ContentEvent
        {
            get { return contentEvent; }
            set { contentEvent = value; }
        }
        private Calendar calendarEvent;

        public Calendar CalendarEvent
        {
            get { return calendarEvent; }
            set { calendarEvent = value; }
        }
        private GroupContact contactEvent;

        public GroupContact ContactEvent
        {
            get { return contactEvent; }
            set { contactEvent = value; }
        }
        private String locationEvent;

        public String LocationEvent
        {
            get { return locationEvent; }
            set { locationEvent = value; }
        }
        private string mailAuthorEvent;

        public string MailAuthorEvent
        {
            get { return mailAuthorEvent; }
            set { mailAuthorEvent = value; }
        }


        public String NameEvent
        {
            get { return nameEvent; }
            set { nameEvent = value; }
        }

        //CONSTRUCTEUR
        public Event()
        {
            this.contactEvent = new GroupContact();
            this.contentEvent = "";
            this.calendarEvent = new Calendar();
            this.mailAuthorEvent = "";
        }
        public Event(SortedSet<Contact> listcontact)
        {
            this.contactEvent = new GroupContact(this.nameEvent, listcontact);
            idEvent = 0;
            nameEvent = "name";
            contentEvent = "content";
            locationEvent = "location";
            calendarEvent = new Calendar();
        }
        public Event(GroupContact listcontact)
        {
            this.contactEvent = listcontact;
            idEvent = 0;
            nameEvent = "name";
            contentEvent = "content";
            locationEvent = "location";
            calendarEvent = new Calendar();
        }
        public Event(Calendar calendar, String name, String content)
        {
            this.nameEvent = name;
            this.calendarEvent = calendar;
            this.contentEvent = content;
        }
        
    }
}
